<?php


	exit('1');
	
	ini_set('max_execution_time', '0');
	require('sql.class.php');


	$p = MyPdo::init();
	$op =  opendir('./bing');
	$i = 0;
	while($f = readdir($op)){
		if($f == '.'|| $f == '..'){
			continue;
		}
 		$name = iconv('gbk','utf-8',$f);


		$info = file_get_contents('./bing/'.$f);

		$sql = 'insert into bing values(null,?,?)';
		$res = $p->dml($sql,array($name,$info));
		dump($res);
	}










function dump($s,$t=false){
	echo '<pre>';
		var_dump($s);
	echo '</pre>';
	if($t){
		exit;
	}
}
